{include file="/index/top"}
<style>
    .banner {
        position: absolute;
        z-index: 20;
        width: 100%;
        text-align: center;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        height: 30%;
        margin: auto;
        padding-top: 320px;
    }

    .banner-text {
        font-family: Pecita;
        color: #ffffff;
        font-size: 70px;
    }

    .banner-text > p {
        line-height: 150px;
    }
    .left{
        float: left;
    }
    .right{
        float: right;
    }
    .course-content{
        width: 1000px;
        left: 0;
        right: 0;
        padding-top: 100px;
        padding-bottom: 100px;
        margin: auto;
        height: auto;
    }
    .course-content-nav{
        width: 200px;
        text-align: right;
    }
    .course-content-nav ul li:last-child{
        line-height: 30px;
        font-size: 18px;
        letter-spacing: 6px;
        margin-bottom: 20px;
        cursor: pointer;
    }
    .course-content-nav ul li:first-child{
        line-height: 30px;
        font-size: 18px;
        letter-spacing: 6px;
        margin-bottom: 20px;
        cursor: pointer;
        border-left: 10px solid #009688;
        color: #009688;
    }
    .course-content-nav>ul>li:hover{
        border-left: 10px solid #009688;
        color: #009688;
    }
    .course-content-nav>ul>li:first-child>a{
        padding-left: -10px;
        color: #009688;
    }
    .course-content-nav>ul>li:hover .a-color{
        color:inherit;!important;
    }
    a:hover{
        text-decoration: none;
    }
    /*.course-content-time{*/
        /*border-left: 1px ridge #a9a9a9;*/
    /*}*/
</style>
<div>
    <img src="__static__/images/apply.jpg" class="img-responsive" alt="Responsive image" width="100%">
    <div style="">
        <div style="position: absolute;display: block;top: 0;width: 100%">
            {include file="/index/topnav"}
            <div class="banner" id="child">
                <div class="banner-text layui-anim layui-anim-scaleSpring">
                    <p>网 院 计 算 机 协 会</p>
                    <p>发 展 历 程</p>
                    <h3>交流学术知识，传播创新理念，激发创新意识，弘扬创新精神</h3>
                </div>
            </div>
        </div>
    </div>

    <div class="course-content">
        <div class="course-content-nav left">
            <ul>
                <li><a class="a-color" href="/course">协会历程</a></li>
                <li><a class="a-color" href="/honorsociety">协会荣誉</a></li>
            </ul>
        </div>
        <div class="course-content-time right" id="historydata" style="">
            <ul class="layui-timeline">
                <li class="layui-timeline-item" v-for="coursedata in coursedatas">
                    <i class="layui-icon layui-timeline-axis"></i>
                    <div class="layui-timeline-content layui-text">
                        <h3 class="layui-timeline-title" v-text="coursedata.year+'年'+coursedata.month+'月'+coursedata.day+'日'"></h3>
                        <br>
                        <p v-text="coursedata.content"></p>
                        <br>
                    </div>
                </li>

            </ul>
        </div>
    </div>
</div>
<div style="clear: both;padding-top: 100px">
    {include file="/index/footer"}
</div>
<script src="__static__"></script>
<script>
    $.ajax({
        type: "POST",
        url: "api/getCourse",
        dataType: "json",
        data: JSON.stringify({"type":1}),
        async: false,
        contentType: "application/json",
        headers: __AUTH__,
        success: function (resp) {
            new Vue({
                el: '#historydata',
                data: {
                    baseUrl: "__static__",
                    coursedatas: resp.data
                }
            })

            console.log(resp.data)
        },
        error:function(error){
            console.log(error)
        }
    });
</script>